<?php
/**
 * Created by PhpStorm.
 * User: 哇咔咔
 * Date: 17-9-4
 * Time: 上午11:12
 */
defined('BASEPATH') OR exit('No direct script access allowed');

class contact extends MY_Controller {
    function index(){
        $data['company'] = parent::company();//公司基本信息
        $column = parent::column('图片管理');
        $data['url'] =parent::pic_url($data['company'] ['id']);
        $arr = array(
            'company_id'=>$data['company'] ['id'],
            'pic_type' =>  '02',
            'del_flag' =>  '0',
            'column_id' => $column['id']
        );
        //获取栏目主图
        $data['pic'] = $this->db->from('picture')->where($arr)->get()->row_array();
        $this->load->view('contact/contact_list',$data);
    }

}